﻿using FluentValidation;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OpenAI.Infrastructure.Requests
{
    public record UpdateChatTipRequest(int Id, string Title, string Content);
    public class UpdateChatTipRequestValidator : AbstractValidator<UpdateChatTipRequest>
    {
        public UpdateChatTipRequestValidator()
        {
            RuleFor(x => x.Title).NotEmpty().NotNull();
            RuleFor(x => x.Content).NotEmpty().NotNull();
        }
    }
}
